<include file="__PUBLIC__/_header"/>
<body>
<div class="navbar navbar-default" id="navbar">
    <script type="text/javascript">
        try{
            ace.settings.check('navbar' , 'fixed')
        }catch(e){

        }
    </script>
    <include file="__PUBLIC__/_header_title"/><!-- /.container -->
</div>
<div class="main-container" id="main-container">
<script type="text/javascript">
    try{
        ace.settings.check('main-container' , 'fixed')
    }catch(e){

    }
</script>

<div class="main-container-inner">
<a class="menu-toggler" id="menu-toggler" href="#">
    <span class="menu-text"></span>
</a>

<div class="sidebar" id="sidebar">
    <script type="text/javascript">
        try{
            ace.settings.check('sidebar' , 'fixed')}catch(e){
        }
    </script>
    <include file="__PUBLIC__/_nav"/>
    <!-- /.nav-list -->
</div>
<div class="main-content">
<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try{
            ace.settings.check('breadcrumbs' , 'fixed')
        }catch(e){

        }
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="{:Controller::_createUrl('index/index')}">首页</a>
        </li>

        <li class="active"> 订单中心 </li>
        <li class="active"> 订单出库查询</li>
    </ul><!-- .breadcrumb -->
</div>
<div class="page-content">
<div class="row">
    <div class="col-xs-12"></div>
    <div class="col-xs-12">
        <div class="tabbable">
            <div class="tab-content no-border padding-24">
                <div class="table-responsive">
                    <div class="container-fluid">
                     <!---->

                     <!---->
                    {:Controller::widget('Model_Vis_Search',array('m'=>'t_26_yonghuliebiao','g'=>'db_sys_26_29','url' => Controller::_createUrl(pdk::getControllerName().'/'.pdk::getActionName(),array('m'=>$_GET['m'],'g'=>$_GET['g']))))}
                    <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>客户姓名</th>
                            <th>已审核</th>
                            <th class="hidden-480">已使用</th>
                            <th>总额度</th>
                        </tr>
                        </thead>
                        <tbody>
                        
                        <tr>
                            <td colspan="12">
                                <!-- <if condition="count($list) gt 0">
                                 <a href="{:Controller::_createUrl('order/list1',array_merge($_GET,array('excel'=>3)))}" class="tooltip-success" data-rel="tooltip" title="Edit">
                                         <span class="green">
                                             <i class="icon-download bigger-120"></i>
                                         </span>
                                     导出订单列表
                                 </a>
                                 <a href="{:Controller::_createUrl('order/list1',array_merge($_GET,array('excel'=>2)))}" class="tooltip-success" data-rel="tooltip" title="Edit">
                                         <span class="green">
                                             <i class="icon-download bigger-120"></i>
                                         </span>
                                     导出拣货单
                                 </a>
                                 <!--<a href="{:Controller::_createUrl('order/list1',$_GET)}/excel/1" class="tooltip-success" data-rel="tooltip" title="Edit">-->
                                        <!--<span class="green">-->
                                            <!--<i class="icon-edit bigger-120"></i>-->
                                        <!--</span>-->
                                    <!--导出汇总单-->
                                <!--</a>-->
                        <!-- </if>-->
                         <ul class="pagination" style="float: right">
                             {$pager_html}
                         </ul>
                     </td>
                 </tr>
                        </tbody>
                        <tfoot>
                        </tfoot>
                    </table>
                </div><!-- /.table-responsive -->
            </div>
        </div>
    </div>
</div>
</div>
</div>
</div>
</div>
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="icon-double-angle-up icon-only bigger-110"></i>
</a>
<link href="__SKIN__/js/colorbox/colorbox.css" rel="stylesheet" type="text/css">
<script src="__SKIN__/js/colorbox/colorbox.js" type="text/javascript"></script>
<script>
    $(document).ready(function(){
        $(".iframe").colorbox({iframe:true, width:"90%", height:"80%"});
        $(".dialogbtn").colorbox({iframe:true, width:"90%", height:"80%"});

        $('#search-box').bind('submit',function(){
             k3_serch();
           
        });
    })

</script>
<script type="text/javascript">
    function k3_serch() {
        $.ajax({
            //几个参数需要注意一下
            type: "GET",//方法类型
            dataType: "json",//预期服务器返回的数据类型
            url: "{:Controller::createUrl('vis/user/K3Peijiankuan')}" ,//url
            data: $('#search-box').serialize(),
            success: function (result) {
                console.log(result);//打印服务端返回的数据(调试用)
                var data = eval(result);

                var html = '';
                html = html+ '<thead>'
                html = html+ '<tr>'
                html = html+ '    <th>客户姓名</th>'
                html = html+ '    <th>已审核</th>'
                html = html+ '    <th>已使用</th>'
                html = html+ '    <th>总额度</th>'
                
                html = html+ '</tr>'
                html = html+ '</thead>'
                html = html+ ' <tbody>'
                for (var i = 0; i < data.length; i++) {
                    html = html+ '<tr>'
                    html = html+ '        <td>'+data[i].FbillNo+'</td>'
                    html = html+ '        <td>'+data[i].FSupplyID+'</td>'
                    html = html+ '       <td>'+data[i].FItemID+'</td>'
                    html = html+ '        <td>'+data[i].FNumber+'</td>'
                    html = html+ '    </tr>'
                }
                html = html+ '</tbody>'
                $('#sample-table-1').html();
                $('#sample-table-1').html(html);
            },
            error : function() {
                alert('调用出错，请稍后再试');
            }
        });
    }
</script>
</body>
</html>
